package com.akaovi.exp.exp10;

import javafx.fxml.FXML;
import javafx.scene.control.Label;

public class HelloController {
    @FXML
    private Label label;

    @FXML
    protected void onButtonClick() {
        if ("你好".equals(label.getText())) {
            label.setText("再见");
        } else if ("再见".equals(label.getText())) {
            label.setText("你好");
        }
    }
}